package jbase.project.system.net.mail;

public class EmailUser {

	public String email;
	public String name;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public EmailUser(String email, String name) {
		super();
		this.email = email;
		this.name = name;
	}

	public EmailUser(String email) {
		super();
		this.email = email;
		String[] splits = email.split("@");
		this.name = splits[0];
	}

	public static EmailUser make(String email, String name) {
		return new EmailUser(email, name);
	}

	public static EmailUser make(String email) {
		return new EmailUser(email);
	}

}